<?php slot('header')?>
<script type="text/javascript">
$(function(){
	MAIN.setMenu('home');
	
});
</script>
<?php end_slot();
slot('banner');
	include_component('componentUlti', 'banner'); 
end_slot()?>
<main>
	<aside class="left">
		<div class="bar-title">
			<h1 class="right">Sản phẩm nổi bật</h1>
		</div>
		<div><?php include_component('componentUlti', 'product', array('act' => 'new'));?></div>
	</aside>
	<aside class="right">
		<div class="bar-title">
			<h1 class="right">Nên xem</h1>
		</div>
		<div class="item">
		<?php $url = url_for2('news_detail', array('id' => $data['news'][0]['id'], 'title' => UserStringHelper::titleToAddress($data['news'][0]['NewsI18n'][0]['title']), 'cate_id' => $data['news'][0]['cate_id']));?>
			<a href="<?php echo $url?>" title="<?php echo $data['news'][0]['NewsI18n'][0]['title']?>" alt="<?php echo $data['news'][0]['NewsI18n'][0]['title']?>"><h1 style="font-size: 18px"><?php echo $data['news'][0]['NewsI18n'][0]['title']?></h1></a>
			<?php if (!empty($data['news'][0]['photo_url'])):?><a href="<?php echo $url?>"  title="<?php echo $data['news'][0]['NewsI18n'][0]['title']?>" alt="<?php echo $data['news'][0]['NewsI18n'][0]['title']?>"><img src="<?php echo $data['news'][0]['photo_url']?>" title="<?php echo $data['news'][0]['NewsI18n'][0]['title']?>" alt="<?php echo $data['news'][0]['NewsI18n'][0]['title']?>"/></a><?php endif;?>
			<div class="des">
				<?php echo html_entity_decode($data['news'][0]['NewsI18n'][0]['description'])?>
			</div>
			<a class="button right" href="<?php echo $url?>" title="<?php echo $data['news'][0]['NewsI18n'][0]['title']?>" alt="<?php echo $data['news'][0]['NewsI18n'][0]['title']?>">Xem thêm</a>
		</div>
	</aside>
	<div class="clr"></div>
	<aside>
		<div class="bar-title">
			<h1 class="right">Bài viết mới</h1>
		</div>
		<div>
			<?php include_component('componentUlti', 'news', array('act' => 'new'))?>
		</div>
	</aside>
	<div class="clr"></div>
</main>